<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>名人专题页面</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap/js/bootstrap.min.js"></script>
    <script src="/js/plugins/jrender/jrender.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css">
    <link rel="stylesheet" href="/css/reset.css">
    <link rel="stylesheet" href="/css/userProfiles.css">
    <link rel="stylesheet" href="/js/plugins/jquery-confirm/css/jquery-confirm.css">
    <script src="/js/plugins/jquery-confirm/js/jquery-confirm.js"></script>
    <script src="/js/common.js"></script>
</head>
<body>
<div class="tabs">
    <ul class="nav nav-pills nav-justified  border border-left-0 border-top-0 border-right-0" id="pills-tab" role="tablist">
        <!--所有-->
        <div class="col" style="background-color: #e9e7ff;" align="center">
            <a href="index.html"><i class="fa fa-reply-all fa-fw"></i> 所有</a>
        </div>
        <!--风景-->
        <div class="col" style="background-color: #2AFF30;" align="center">
            <a href="dailyPage1.html"><i class="fa fa-tree fa-fw"></i> 风景</a>
        </div>
        <!--美食-->
        <div class="col" style="background-color: #9BA2FF" align="center">
            <a href="dailyPage2.html"><i class="fa fa-apple fa-fw"></i> 美食</a>
        </div>
        <!--名人-->
        <a class="nav-link active" id="cate-tab" data-toggle="pill" href="#celebrities">
           名人
        </a>
        <!--军事-->
        <div class="col" style="background-color: #D52A41;" align="center">
            <a href="dailyPage4.html"><i class="fa fa-cab fa-fw"></i> 军事</a>
        </div>
    </ul>
    <div class="container tab-content carousel slide" id="carouselExampleControls"  data-ride="carousel">
            <div id="celebrities" class="carousel-inner" render-loop="list">
                <div class="carousel-item">
                    <div class="border commend">
                        <a href="travelContent.html" render-key="list.id" render-fun="handle">
                            <img render-src="list.coverUrl" width="100%" height="300px">
                            <h6 render-html="list.title"></h6>
                            <h6 render-html="list.releaseTime"></h6>
                        </a>
                    </div>
                </div>
            </div>

            <a class="carousel-control-prev" href="#carouselExampleControls" role="button" data-slide="prev">
                <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                <span class="sr-only"></span>
            </a>
            <a class="carousel-control-next" href="#carouselExampleControls" role="button" data-slide="next">
                <span class="carousel-control-next-icon" aria-hidden="true"></span>
                <span class="sr-only"></span>
            </a>
    </div>
</div>
<script>
    $(function () {
        //显示相关推荐
        $.get("/news", {state: 1,type:3}, function (data) {
            $("#carouselExampleControls").renderValues(data, {
                handle: function (ele, value) {
                    ele.href = "/newsContent.html?id="+value;
                }
            });
            $("#celebrities > div:first").addClass("active");
        }, "json");
    })
</script>
</body>
</html>